﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="trangchu.aspx.cs" Inherits="trangchu" %>
<%@ Register TagPrefix="cc1" Namespace="SiteUtils" Assembly= "CollectionPager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style11
        {
            height: 95px;
        }
        .style13
        {
            height: 10px;
            width: 680px;
        }
        .style18
        {
            height: 50px;
            width: 94px;
        }
        .style20
        {
            height: 10px;
            width: 150px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
      &nbsp;&nbsp;&nbsp;
      <asp:DataList ID="dlSach" runat="server" BackColor="White" 
            BorderColor="#CCCCCC"  CellPadding="4" 
            ForeColor="Black" GridLines="Horizontal" RepeatColumns="2">
            <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
            <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
            <ItemTemplate>
                <table class="style11" width="391">
                    <tr>
                        <td rowspan="3" width="180" align="center">
                          
                            
                            <asp:ImageButton ID="Image7" runat="server" Height="150px" 
                                    PostBackUrl='<%# Eval("MaSach","~/chitietsanpham.aspx?MaSach={0}") %>'
                                    ImageUrl='<%# "image/"+ Eval("Hinh") %>' Width="100px" />
                        </td>
                         <td class="style18" align="left" colspan="2">
                             <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" 
                                 Font-Size="Medium" ForeColor="#3333FF" 
                                 NavigateUrl='<%# Eval("MaSach","~/chitietsanpham.aspx?MaSach={0}") %>' 
                                 Text='<%# Eval("TenSach") %>'></asp:HyperLink>
                        </td>
                    </tr>
                    <tr>
                         <td class="style20">
                        <asp:Label ID="Label3" runat="server"  ForeColor="#003300" 
                                    Text='Tác giả:' Font-Size="14px"></asp:Label>
                        </td>

                        <td width="610" class="style13">
                        <asp:Label ID="lbtacgia" runat="server"  ForeColor="Blue" 
                                    Text='<%# Eval("TacGia") %>' Font-Size="16px"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style20">
                        <asp:Label ID="Label2" runat="server"  ForeColor="#333300" 
                                    Text='Giá bán:' Font-Size="14px"></asp:Label>
                        </td>
                        <td width="610" class="style13">
                        <asp:Label ID="Label1" runat="server"  ForeColor="#FF3300" 
                                    Text='<%# Eval("DonGia") %>' Font-Size="16px" Font-Bold="True"></asp:Label>
                            VNĐ</td>
                    </tr>
                    <tr>
                        <td align="right">
                            &nbsp;</td>
                    </tr>
                </table>
            </ItemTemplate>
            <SelectedItemStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
        </asp:DataList>
        <div style="width: 800px">
        <table>
        <tr>
        <td align="center" width="790"><cc1:collectionpager id="clp1" runat="server" 
                MaxPages="10" PageSize="6"  BackText="« Lùi" LabelText="Trang:" 
                NextText="Tới »" ResultsFormat="Results {0}-{1} (of {2})" UseSlider="True"></cc1:collectionpager>
        </td>
        </tr>
        </table>
        </div>
</div>&nbsp;
    
       
</asp:Content>

